package com.project.bean;

/**
 * 用户实体类
 */
public class UserBean {
    /**
     * 用户编号
     */
    private Integer userId;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 密码
     */
    private String password="";
    /**
     * 真实姓名
     */
    private String realName;
    /**
     * 用户等级
     */
    private String grade;

    public UserBean() {
    }

    public UserBean(String userName, String realName, String grade) {
        this.userName = userName;
        this.realName = realName;
        this.grade = grade;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", realName='" + realName + '\'' +
                ", grade='" + grade + '\'' +
                "}\n";
    }
}
